< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03120102.xhp

(section: chr) (bookmark: bm_id3149205)
Chr function

Chr 関数

Chr Function [Runtime]
Chr 関数 [実行時](hd_id3149205.1)

Returns the character that corresponds to the specified character code.
指定された文字コードに対応する文字を返します。(par_id3153311.2)

(/section: chr)

Syntax:
構文:(hd_id3149514.3)

Chr(Expression As Integer)
Chr(Expression As Integer)(par_id3150669.4)

Return value:
戻り値:(hd_id3143228.5)

String
文字列(par_id3153824.6)

Parameters:
パラメータ:(hd_id3148944.7)

Expression: Numeric variables that represent a valid 8 bit ASCII value (0-255) or a 16 bit Unicode value.
Expression: 8 ビットの ASCII 値 (0-255) ないしは 16 ビットの Unicode 値を示す数値変数を指定します。(par_id3149295.8)

Use the Chr$ function to send special control sequences to a printer or to another output source. You can also use it to insert quotation marks in a string expression.
Chr$ 関数は、プリンタなどの出力装置に対して、制御用の特殊なシーケンスを送信する際に使用します。また文字列中に引用符を挿入する場合にも使用できます。(par_id3159414.9)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3154366.10)

sub ExampleChr
sub ExampleChr(par_id3144502.11)

REM This example inserts quotation marks (ASCII value 34) in a string.
REM このサンプルは、引用符 (ASCII 値 34) を文字列中に挿入します。(par_id3154909.12)

MsgBox "A "+ Chr$(34)+"short" + Chr$(34)+" trip."
MsgBox "A "+ Chr$(34)+"short" + Chr$(34)+" trip."(par_id3151380.13)

REM The printout appears in the dialog as: A "short" trip.
REM ダイアログには A "short" trip. と表示されます。(par_id3145174.14)

end sub
end sub(par_id3154685.15)

ASC
ASC(par_idN10668.)


< Prev / Next >